import storage from '@/utils/storage'

const state = () => ({
  menus: storage.get('menus') || [],
  indexMenu: storage.get('indexMenu'),
  permissions: storage.get('permissions') || [],
})

const mutations = {}

const actions = {}

export default {
  namespaced: true,
  state: state,
  actions: actions,
  mutations: mutations,
}
